<?php
  //header("Content-Type: text/xml");
  $tagShow=$_REQUEST['input'];
  $url="http://rest.bioontology.org/bioportal/search/".$tagShow;
  //casa?email=example@example.org
?>
<?php

require_once "RESTclient.php";

$rest = new RESTclient();

$inputs = array();
$rest->createRequest("$url","GET",$inputs);
$rest->sendRequest();
$output = $rest->getResponse();
$xmlData=$output;
$handle = fopen("test.xml", "w+");
fwrite($handle  , $output);

$xml = simplexml_load_file("test.xml");

$result = $xml->xpath("data/page/contents/searchResultList/searchBean/contents");

echo "<ul>\n";
for($i=0;$i<sizeof($result);$i++){
  //$result[$i][0]=addslashes($result[$i][0]);
  $result[$i][0]=str_replace  ( "\""  , ""  , $result[$i][0]);
  echo "<li>".$result[$i][0]."</li>";
}
echo "</ul>\n";
?>